package com.ct.boss.demo.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author ChenTong
 * @version 1.0
 * @description 注解提示该方法需要有用户登录
 * @date 2020/6/15 21:59
 * @modified
 **/
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface UserLogin {
    boolean required() default true;
}
